<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:pb="http://b2b.pb.com/tags"
   xmlns:pbc="http://java.sun.com/jsf/composite/component">

<ui:composition template="/template/MainTemplate.xhtml">
   <ui:define name="body">
      <pb:saveBean beanName="changeCategoryBean" bean="#{changeCategoryBean}" />
      <p>
         <h:outputText value="#{categoryBundle.change_category_confirm_msg}" />
      </p>

      <p:panel header="#{categoryBundle.create_category_tbl_header}" styleClass="marginTop7">
         <p:panelGrid styleClass="confirm">
            <p:row>
               <p:column styleClass="confirmCol1">
                  <h:outputText value="#{categoryBundle.lbl_parent_category_name}" />
               </p:column>
               <p:column styleClass="confirmCol2">
                  <h:outputText value="#{changeCategoryBean.selectedNode.data.name}" />
               </p:column>
            </p:row>
            <p:row>
               <p:column styleClass="confirmCol1">
                  <h:outputText value="#{categoryBundle.lbl_status}" />
               </p:column>
               <p:column styleClass="confirmCol2">
                  <h:outputText value="#{changeCategoryBean.selectedCategory.status}" />
               </p:column>
            </p:row>
            <p:row>
               <p:column colspan="2" style="padding: 0 0 5px 0;">
                  <p:tabView id="tabView" var="categoryLanguage" value="#{changeCategoryBean.selectedCategoryLanguages}" style="padding:0;">
                     <p:tab id="languageTab" title="#{categoryLanguage.language.name}">

                        <p:panelGrid columns="2" styleClass="tabPanel confirm" columnClasses="confirmCol1,confirmCol2">
                           <h:outputText value="#{categoryBundle.lbl_category_name}" />
                           <h:outputText value="#{categoryLanguage.name}" />

                           <h:outputText value="#{categoryBundle.lbl_description}" />
                           <h:outputText value="#{categoryLanguage.description}" />

                           <h:outputText value="#{categoryBundle.lbl_keywords}" />
                           <h:outputText value="#{categoryLanguage.keywords}" />
                        </p:panelGrid>

                     </p:tab>
                  </p:tabView>
               </p:column>
            </p:row>
         </p:panelGrid>
      </p:panel>

      <p:panel rendered="false" header="#{languageBundle.create_laguage_tbl_header}">
         <p:panelGrid columns="2" styleClass="confirm" columnClasses="confirmCol1,confirmCol2">

            <ui:repeat var="categoryLanguage" value="#{changeCategoryBean.selectedCategoryLanguages}">
               <h:outputText value="#{categoryLanguage.language.name}" />

               <h:outputText value="#{categoryBundle.lbl_parent_category_name}" />
               <h:outputText value="#{categoryLanguage.category.parentCategory}" />

               <h:outputText value="#{categoryBundle.lbl_category_name}" />
               <h:outputText value="#{categoryLanguage.name}" />

               <h:outputText value="#{categoryBundle.lbl_description}" />
               <h:outputText value="#{categoryLanguage.description}" />

               <h:outputText value="#{categoryBundle.lbl_keywords}" />
               <h:outputText value="#{categoryLanguage.keywords}" />
            </ui:repeat>
         </p:panelGrid>
      </p:panel>

      <p:tabView rendered="false" styleClass="marginTop7" id="tabView2" var="categoryLanguage"
         value="#{changeCategoryBean.selectedCategoryLanguages}">
         <p:tab id="languageTab" title="#{categoryLanguage.language.name}">

            <h:panelGrid columns="2" cellpadding="10" columnClasses="confirmCol1,confirmCol2" styleClass="confirm">
               <h:outputText value="#{categoryBundle.lbl_category_name}" />
               <h:outputText id="name" value="#{categoryLanguage.name}" />

               <h:outputText value="#{categoryBundle.lbl_description}" />
               <h:outputText value="#{categoryLanguage.description}" />

               <h:outputText value="#{categoryBundle.lbl_keywords}" />
               <h:outputText id="keywords" value="#{categoryLanguage.keywords}" />
            </h:panelGrid>

         </p:tab>
      </p:tabView>

      <pbc:buttonGroup executeAction="#{changeCategoryBean.executeAction}" executeBtnShow="true"
         backAction="#{changeCategoryBean.backAction}" backBtnShow="true"
         cancelAction="#{changeCategoryBean.cancelAction}" cancelBtnShow="true" />
   </ui:define>
</ui:composition>
</html>








